import { useMemberStore } from '@/stores/index'
import { onLoad } from '@dcloudio/uni-app'
import type { LoginResult } from '../types/member'
import { ref } from 'vue'
import type { XtxGuessInstance } from '../types/component'
export const useGuessList = () => {
  //guessRef代表的就是XtxGuess实例，然后给它指定类型这样就可以通过guessRef.value来调用实例的方法和属性了
  const guessRef = ref<XtxGuessInstance>()
  //滚动触底事件
  const onscrollToLower = () => {
    guessRef.value?.getMore()
  }
  //返回
  return {
    guessRef,
    onscrollToLower,
  }
}
